/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package GUI;

import com.sun.media.jai.widget.DisplayJAI;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Point;

/**
 *
 * @author Igor
 */

public class DisplayPrincipal extends DisplayJAI {

    private Point pontoCursor;


    @Override
    public void paint (Graphics g) {
        super.paint(g);
        g.setColor(Color.RED);
        if (pontoCursor!=null)
            g.fillOval((int)pontoCursor.getX(),(int)pontoCursor.getY(), 15, 15);
    }

    public void setPontoCursor(Point pontoCursor) {
        this.pontoCursor = pontoCursor;
    }


}
